<!--{template user/header}-->
<div class="container">
  <div class="nav-action">
    <!--{template user/left_side}-->
  </div>
  <!-- nav-action end -->
  <div class="content-panel">
    <div class="user-short user-cards">
      <div class="media media-cards">
        <div class="user-avatar">
          <a href="index.php?do=seller&id={$gUid}">
            <!--{userpic($gUid,'larger')}-->
          </a>
        </div>
        <div class="media-body">
          <div class="user-info">
            <div class="top-left top-Leftcards">
              <h2 class="media-heading username">{$username}</h2>
              <div class="p-row1 user-position">
                账号认证： {loop $arrAuthItems $v}
                <a href="{$v['auth_url']}"><img class="mar0" src="{if $v['auth_pass'] == '1'}{$v['auth_small_ico']}{else}{$v['auth_small_n_ico']}{/if}" width="16px" height="16px" alt="" title="{$v['auth_title']}"></a>
                {/loop} 
                <a href="index.php?do=user&view=account&op=auth" class="user-approve">去认证<i class="fa fa-angle-double-right"></i></a>
              </div>
              <div class="p-row1">
                手机：{if $gUserInfo['mobile']}{$gUserInfo['mobile']}{else}暂无{/if}
              </div>
              <div class="p-row1">
                Q Q：{if $gUserInfo['qq']}{$gUserInfo['qq']}{else}暂无{/if}
              </div>
              <div class="p-row1">
                <div class="wk-userInfo">
                  邮箱：{if $gUserInfo['email']}{$gUserInfo['email']}{else}暂无{/if}
                </div>  
                <a href="index.php?do=user&view=account&op=basic" class="user-link">完善资料<i class="fa fa-angle-double-right"></i></a>
              </div>
            </div>
            <!-- top-left end -->
            <div class="top-center top-centerCards">
              <p class="top-centerCards-title">余额</p>
              <p class="top-centerCards-txt"><strong>{c:$gUserInfo['balance']}</strong></p>
              <p class="top-centerCards-btn">
                <a href="index.php?do=user&view=finance&op=withdraw" class="btn btn-default btn-xs">提现</a>
                <a href="index.php?do=user&view=finance&op=rechargeonline" class="btn btn-default btn-xs">充值</a>
              </p>
            </div>
            <!-- top-center end -->
            <div class="top-right top-rightCards">
              <p class="top-rightCards-title">项目提醒</p>
              <div class="notice notice-cards">
                <!-- <i class="fa fa-flag"></i> -->
                <a href="index.php?do=user&view=transaction&op=sold&intModelId=7&strStatus=seller_confirm">新服务订单</a>
                <span class="number">{$intService}</span>
              </div>
              <div class="notice notice-cards">
                <!-- <i class="fa fa-flag"></i> -->
                <a href="index.php?do=user&view=wk&op=gy&s=seller_confirm">新雇佣</a>
                <span class="number">{$intGy}</span>
              </div>
              <div class="notice notice-cards">
                <!-- <i class="fa fa-comment"></i> -->
                <a href="index.php?do=user&view=wk&op=mark&type=1">待评价</a>
                <span class="number">{$intMarkW}</span>
              </div>
            </div>
            <!-- top-right end -->
          </div>
        </div>
      </div>
    </div>
    <!-- user-short end -->
    <div class="horizontal-row">
      <div class="user-auth">
        <div class="type-heading">
          <h3 class="type-title"><span>最新承接的任务</span><a href="index.php?do=user&view=transaction&op=undertake">更多</a></h3>
        </div>
        <div class="user-auth-body">
          <div class="table-responsive">
            <table class="table table-hover ">
              <thead>
                <tr>
                  <th>编号</th>
                  <th>标题</th>
                  <th>金额（元）</th>
                  <th>发布时间</th>
                  <th>状态</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
                {if $arrTaskLists}
                {loop $arrTaskLists $k $v}
                  <tr>
                    <td>{$v['task_id']}</td>
                    <td><a href="index.php?do=task&id={$v['task_id']}" title="{$v['task_title']}">{$v['task_title']}</a></td>
                    <td>
                      <span class="user-money">
                      <!--{eval echo  keke_glob_class::showTaskCash($v['task_id']);}-->
                      </span>
                    </td>
                    <td>
                      <!--{eval echo date('Y-m-d',$v['start_time'])}-->
                    </td>
                    <td>
                      {if !$intModelId}
                      <!--{eval $TaskStatus = call_user_func ( array ($arrTaskNavs[$v['model_id']]['model_code'] . "_task_class", "get_task_status" ) );}-->
                      {$TaskStatus[$v['task_status']]}
                      {else}
                      {$arrTaskStatus[$v['task_status']]}
                      {/if}
                    </td>
                    <td>
                      <!--{eval
                      if($v[model_id]==4||$v[model_id]==5){
                      $opera = wiki_opera($v['model_id'],$v['task_id'],$v['bid_id'],$strUrl);
                      }else{
                      $opera = wiki_opera($v['model_id'],$v['task_id'],$v['work_id'],$strUrl);
                      }}-->

                      {loop $opera $k $v}
                        <a href="{$v['href']}" {if $v['click']}onclick="{$v['click']}"{/if}>{$v['desc']}</a>
                      {/loop}
                    </td>
                  </tr>
                {/loop}
                {else}
                <tr>
                  <td colspan="6" class="text-center"><p class="empty-box"><img src="./tpl/default/img/icon-empty.png" class="empty-img">咦，空空如也快去<a href="index.php?do=tasklist">承接任务</a>吧</p></td>
                </tr>
                {/if}
              </tbody>
            </table>
          </div>
          <!--table-responsive-->          
        </div>        
      </div>

    </div>
    <!-- horizontal-row end -->
    
    <div class="horizontal-row">
      <div class="user-auth">
        <div class="type-heading">
          <h3 class="type-title"><span>我的认证</span><a href="index.php?do=user&view=account&op=auth">更多</a></h3>
        </div>
        <div class="user-auth-body">
          <div class="tab_detail">
            <div class="table-responsive">
              <table class="table table-hover">
                {loop $arrAuthItems $v}
                <tr>
                  <td>
                    <div class="media">
                      <div class="pull-left">
                        <img class="media-object" src="{$v['auth_big_ico']}" alt="{if in_array($v['auth_code'],array('realname','enterprise'))}身份认证{else}{$v['auth_title']}{/if}">
                      </div>
                      <div class="media-body">
                        <div class="pull-right">
                          <span class="label mr_10 {if $arrUserAuthInfo[$v[auth_code]]['auth_status']}label-success{else}label-default
                                    {/if}">
                                    {if $arrUserAuthInfo[$v[auth_code]]['auth_status'] =='1'}
                                      <i class="fa fa-check"></i>已认证
                                    {else}
                                      未认证
                                    {/if}
                                    </span> {if $arrUserAuthInfo[$v[auth_code]]['auth_status'] =='1'}
                          <a href="index.php?do={$do}&view=account&op=auth&code={$v[auth_code]}" class="btn btn-default btn-xs">查看认证</a> {else}
                          <a href="index.php?do={$do}&view=account&op=auth&code={$v[auth_code]}" class="btn btn-default btn-xs">立即认证</a> {/if}
                        </div>
                        <strong class="media-heading">

                                  {if in_array($v['auth_code'],array('realname','enterprise'))}身份认证{else}{$v['auth_title']}{/if}

                                </strong>
                        <p>$v['auth_desc']</p>
                      </div>
                    </div>
                  </td>
                </tr>
                {/loop}
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- horizontal-row end -->
    <div class="horizontal-row">
      <!-- <div class="user-type">
        <div class="type-heading">
          <h3 class="type-title">评价信息</h3>
        </div>
        <div class="type-body1">
          <ul class="count">
            <li class="item"><span class="num">{$gUserInfo['seller_credit']}</span>能力值：</li>
            <li class="item"><span class="num">{eval echo kekezu::favorableRate($gUserInfo['uid'],1)}<sub>%</sub></span>好评率：</li>
            <li class="item"><span class="num">{$gUserInfo['accepted_num']}</span>中标稿件数：</li>
            <li class="item"><span class="num"><sub></sub>{c:$floatBidTask[0]['cash']}</span>获得任务款：</li>
            <li class="item"><span class="num">{$floatSaleService[0]['count']}</span>出售服务数：</li>
            <li class="item"><span class="num"><sub></sub>{c:$floatSaleService[0]['cash']}</span>获得服务款：</li>
          </ul>
        </div>
      </div> -->
      <div class="user-type">
        <div class="type-heading">
          <h3 class="type-title">我卖出的商品信息</h3>
        </div>
        <div class="type-list" style="height: 158px;">
          <table class="table table-hover count1">
            <thead>
              <tr>
                <th>名称</th>
                <th>数量</th>
                <th>售出时间</th>
                <th>总价</th>
              </tr>
            </thead>
            <tbody>
              {loop $arrRercod $k $v}
              <tr>
                <td><a href="index.php?do=goods&id={$v['service_id']}" class="list-desc1">{$v['title']}</a></td>
                <td>{$v['sale_num']}</td>
                <td>{$v['buytime']}</td>
                <td><span class="user-money">{$v['total_sale']}</span></td>
              </tr>
              {/loop}
            </tbody>
          </table>
        </div>
      </div>
      <!-- user-type end -->
      <div class="user-type">
        <div class="type-heading">
          <h3 class="type-title">最新动态</h3>
        </div>
        <div class="type-body1" style="height: 158px;">
          <ul class="count">
            {loop $arr $key $val}
            <li class="item1"><span class="desc">{$val['dongtai']}</span>
              <div class="time">
                <!--{eval echo  CommonClass::getStatus($val['time']);}-->
              </div>
            </li>
            {/loop}
          </ul>
        </div>
      </div>
      <!-- user-type end -->
    </div>
    <!-- row end -->
    <!-- <div class="horizontal-row">
      <div class="user-type">
        <div class="type-heading">
          <h3 class="type-title">我收藏的任务</h3>
        </div>
        <div class="type-list">
          <table class="table table-hover count1">
            <thead>
              <tr>
                <th>名称</th>
                <th>金额（元）</th>
                <th>店家</th>
                <th>状态</th>
              </tr>
            </thead>
            <tbody>
              {loop $arrFavorite $v}
              <tr>
                <td><a href="index.php?do=task&id={$v['obj_id']}" class="list-desc">$v['obj_name']</a></td>
                <td><span class="money">{eval  $a=ServiceClass::getTaskByObj_id($v['obj_id']);echo $a['task_cash']}</span></td>
                <td>
                  <a href="index.php?do=seller&id={eval  $a=ServiceClass::getTaskByObj_id($v['obj_id']);echo $a['uid']}">
                    {eval  $a=ServiceClass::getTaskByObj_id($v['obj_id']);echo $a['username']}
                  </a>
                </td>
              </tr>
              {/loop}
            </tbody>
          </table>
        </div>
      </div>
      user-type end
      <div class="user-type">
        <div class="type-heading">
          <h3 class="type-title">我卖出的商品信息</h3>
        </div>
        <div class="type-list">
          <table class="table table-hover count1">
            <thead>
              <tr>
                <th>名称</th>
                <th>数量</th>
                <th>售出时间</th>
                <th>总价</th>
              </tr>
            </thead>
            <tbody>
              {loop $arrRercod $k $v}
              <tr>
                <td><a href="index.php?do=goods&id={$v['service_id']}" class="list-desc1">{$v['title']}</a></td>
                <td>{$v['sale_num']}</td>
                <td>{$v['buytime']}</td>
                <td><span class="money">{$v['total_sale']}</span></td>
              </tr>
              {/loop}
            </tbody>
          </table>
        </div>
      </div>
      user-type end
    </div> -->
    <!-- row end -->
  </div>
  <!-- content-panel end -->
</div>
<!--{template user/footer}-->
